<template>
  <div class="page">
    <div class="page__top">
        <RouterView />
    </div>
    <div class="page__footer">
      <van-tabbar :fixed="false" route>
        <van-tabbar-item to="/first-page" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item to="/shop" icon="apps-o">商城</van-tabbar-item>
        <van-tabbar-item to="/shop-cart" icon="shopping-cart-o">购物车</van-tabbar-item>
        <van-tabbar-item to="/my-order" icon="friends-o">我的</van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>

<script lang="ts" setup>

</script>

<style lang="scss" scoped>
.page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;

  &__top {
    flex: 1;
    overflow-y: auto;
  }
}
</style>